#include <stdio.h>
#include <ctype.h>
int main(void)
{
    char ch;
    float count_words = 0;
    float count_letters = 0;
    float avg;

    while ((ch = getchar()) != EOF)
    {
        if (ispunct(ch))
            continue;
        else
        {
            if (ch == ' ')
                count_words++;
            else if (islower(ch) || isupper(ch))
                count_letters++;
        }
    }
    avg = count_letters / (count_words + 1);
    printf("字母数：%.0f 单词数：%.0f\n", count_letters, count_words + 1);
    printf("平均每个单词字母数：%.2f\n", avg);

    return 0;
}

